package com.mmall.service;

import com.mmall.common.ServiceResponse;
import com.mmall.pojo.User;

public interface IUserService {
    ServiceResponse<User> login(String userName, String password);

    ServiceResponse<String> register(User user);

    ServiceResponse<String> checkValid(String string, String type);

    ServiceResponse<String> selectQuestion(String username);

    ServiceResponse<String> checkForgetAnswer(String username, String question, String answer);

    ServiceResponse<String> forgetRestPassword(String username, String password, String forgetToken);

    ServiceResponse<String> resetPassword(String passwordOld, String passwordNew, User user);

    ServiceResponse<User> updateUserInfo(User user);

    ServiceResponse<User> getUserInfo(Integer userId);

    ServiceResponse checkAdminRole(User user);
}
